<script>
    window.globalValues = {
        host: '{:config(\'app_host\')}' || location.host,
        user_id: +'{$user.id}',
        intoMsg: '{:session(\'intoMsg\')}',
    };
</script>